package com.sjc.counter.v1;

import com.sjc.counter.entity.RequestInfo;

import java.util.List;
import java.util.Map;

/**
 * @Classname MetricsStorage
 * @Description 负责原始数据存储
 * @Date 2020/5/1 13:46
 * @Created by SangJiacun
 */
public interface MetricsStorage {

    void saveRequestInfo(RequestInfo requestInfo);

    List<RequestInfo> getRequestInfos(String apiName, long startTimeInMillis, long endTimeInMillis);

    Map<String, List<RequestInfo>> getRequestInfos(long startTimeInMillis, long endTimeInMillis);
}
